home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 013 / dosgone.arc / INSTALL.BAT < prev    next >
Encoding:
DOS Batch File  |  1999-01-01  |  1.9 KB  |  79 lines

  1. echo off
  2. cls
  3. echo . Installation for                D o s G o n e
  4. echo .--------------------------------------------------------------
  5. echo .NOTE:  If you have an autoexec.bat file on the drive where
  6. echo .       DosGone is being installed, it will be renamed
  7. echo .       AUTOEXEC.OLD.  DosGone will modify your existing
  8. echo .       AUTOEXEC.BAT.  If you modify it, make sure it contains a
  9. echo .       path to the root directory.  Also, the last command
  10. echo .       should be MENU.  Otherwise, DosGone will not start
  11. echo .       automatically.  If you have a file named MENU.BAT in the
  12. echo .       root directory, it will be renamed MENU.OLD.
  13. echo .
  14. echo .
  15. echo .
  16. echo .The correct command is:    INSTALL drive:
  17. echo .
  18. if "==%1" goto error
  19. if a==%1 goto error
  20. if A==%1 goto error
  21. if a:==%1 goto error
  22. if A:==%1 goto error
  23. if b==%1 goto error
  24. if B==%1 goto error
  25. if c==%1 goto error
  26. if C==%1 goto error
  27. if d==%1 goto error
  28. if D==%1 goto error
  29. if e==%1 goto error
  30. if E==%1 goto error
  31. if f==%1 goto error
  32. if F==%1 goto error
  33. echo .
  34. echo .Dos Gone will be installed on drive %1
  35. echo .
  36. echo .If this is not correct Press Ctrl-Break
  37. echo .
  38. echo .Otherwise...
  39. echo .
  40. pause
  41. cd %1\
  42. if exist %1menu.bat copy %1menu.bat %1menu.old
  43. if not exist %1autoexec.bat goto cont1
  44. copy %1autoexec.bat %1autoexec.old
  45. echo %1 >drive.dat
  46. autofix
  47. del drive.dat
  48. goto cont2
  49. :CONT1
  50. copy autoexec.dat %1autoexec.bat
  51. :CONT2
  52. copy menu2.bat %1\menu.bat
  53. md %1\DosGone
  54. cd %1\DosGone
  55. copy DosGone.exe %1
  56. copy sysuper.exe %1
  57. copy menu.bat %1
  58. copy users.dat %1
  59. copy MainMenu.dat %1
  60. copy DosGone.doc %1
  61. copy DosGone.reg %1
  62. copy readme %1
  63. echo .
  64. echo .
  65. echo .
  66. echo .Installation complete.  Starting DosGone...
  67. echo .
  68. echo .To start DosGone in the future, just type MENU
  69. %1
  70. cd \
  71. menu
  72. goto end
  73. :error
  74. echo .ERROR.....
  75. echo .You need to specify the drive for installation
  76. echo .followed with a colon.
  77. echo .     ( ie  C: )
  78. :end
  79.